<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.util.List" %>
<%@ page import="javax.jdo.PersistenceManager" %>
<%@ page import="org.laowenchao.server.PMF" %>
<%@ page import="org.laowenchao.pojo.GSMPosition" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>mytrack</title>
</head>
<body>
这里是一个旧版的入口，请转至<a href="/MyTrack.html">新入口</a>

<%
    PersistenceManager pm = PMF.get().getPersistenceManager();
    String query = "select from " + GSMPosition.class.getName()+" order by date desc";
    List<GSMPosition> position = (List<GSMPosition>) pm.newQuery(query).execute();
    for(GSMPosition p: position)
    {
    	%>
    	<p><%=p.getDate().getTime()%>|<%=p.getCellId()%>|<%=p.getLAC()%>|<%=p.getLat()%>|<%=p.getLon()%>|<%=p.getPosition()%> </p>  
    	<%
    }
%>

</body>
</html>